home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Educational / PrimeSpiral / Source / SpiralGenerator.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  635 b   |  29 lines

  1. /* File:    SpiralGenerator.h - Spiral generator for 'PrimeSpiral'
  2.  *
  3.  * By:        Christopher Lane
  4.  *        Symbolic Systems Resources Group
  5.  *        Knowledge Systems Laboratory
  6.  *        Stanford University
  7.  *
  8.  * Date:    19 February 1990
  9.  *
  10.  * Copyright:    1990 by The Leland Stanford Junior University.  This program
  11.  *         may be distributed without restriction for non-commercial use.
  12.  */
  13.  
  14. #import <objc/Object.h>
  15. #import <appkit/graphics.h>
  16.  
  17. typedef enum {UP, RIGHT, DOWN, LEFT} DIRECTION;
  18.  
  19. @interface SpiralGenerator:Object
  20. {
  21.     unsigned int count, remain, distance;
  22.     DIRECTION direction;
  23. }
  24.  
  25. + new;
  26. - generate:(unsigned int) number :(NXPoint *) point;
  27.  
  28. @end
  29.